package com.gqj.meter.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gqj.meter.mapper.MdChkTaskDetailsMapper;
import com.gqj.meter.domain.MdChkTaskDetails;
import com.gqj.meter.service.IMdChkTaskDetailsService;

/**
 * 盘点任务详情Service业务层处理
 *
 * @author lxq
 * @date lxq-02-10
 */
@Service
public class MdChkTaskDetailsServiceImpl implements IMdChkTaskDetailsService
{
    @Autowired
    private MdChkTaskDetailsMapper mdChkTaskDetailsMapper;

    /**
     * 查询盘点任务详情
     *
     * @param taskDetailsId 盘点任务详情主键
     * @return 盘点任务详情
     */
    @Override
    public MdChkTaskDetails selectMdChkTaskDetailsByTaskDetailsId(Long taskDetailsId)
    {
        return mdChkTaskDetailsMapper.selectMdChkTaskDetailsByTaskDetailsId(taskDetailsId);
    }

    /**
     * 查询盘点任务详情列表
     *
     * @param mdChkTaskDetails 盘点任务详情
     * @return 盘点任务详情
     */
    @Override
    public List<MdChkTaskDetails> selectMdChkTaskDetailsList(MdChkTaskDetails mdChkTaskDetails)
    {
        return mdChkTaskDetailsMapper.selectMdChkTaskDetailsList(mdChkTaskDetails);
    }

    /**
     * 查询盘点任务详情列表
     *
     * @param mdChkTaskDetails 盘点任务详情
     * @return 盘点任务详情
     */
    @Override
    public List<MdChkTaskDetails> selectMdChkTaskDetailsListExcel(MdChkTaskDetails mdChkTaskDetails)
    {
        return mdChkTaskDetailsMapper.selectMdChkTaskDetailsListExcel(mdChkTaskDetails);
    }

    /**
     * 新增盘点任务详情
     *
     * @param mdChkTaskDetails 盘点任务详情
     * @return 结果
     */
    @Override
    public int insertMdChkTaskDetails(MdChkTaskDetails mdChkTaskDetails)
    {
        return mdChkTaskDetailsMapper.insertMdChkTaskDetails(mdChkTaskDetails);
    }

    /**
     * 修改盘点任务详情
     *
     * @param mdChkTaskDetails 盘点任务详情
     * @return 结果
     */
    @Override
    public int updateMdChkTaskDetails(MdChkTaskDetails mdChkTaskDetails)
    {
        return mdChkTaskDetailsMapper.updateMdChkTaskDetails(mdChkTaskDetails);
    }

    /**
     * 批量删除盘点任务详情
     *
     * @param taskDetailsIds 需要删除的盘点任务详情主键
     * @return 结果
     */
    @Override
    public int deleteMdChkTaskDetailsByTaskDetailsIds(Long[] taskDetailsIds)
    {
        return mdChkTaskDetailsMapper.deleteMdChkTaskDetailsByTaskDetailsIds(taskDetailsIds);
    }

    /**
     * 删除盘点任务详情信息
     *
     * @param taskDetailsId 盘点任务详情主键
     * @return 结果
     */
    @Override
    public int deleteMdChkTaskDetailsByTaskDetailsId(Long taskDetailsId)
    {
        return mdChkTaskDetailsMapper.deleteMdChkTaskDetailsByTaskDetailsId(taskDetailsId);
    }
}
